using UnityEngine;
using System.Collections;

public class CatKiller : MonoBehaviour 
{
	float timer = 0;
	float limit = 2;
	
	void Start () 
	{
	
	}
	
	void Update () 
	{
		timer += Time.deltaTime;
		
		if(timer >= limit)
		{
			Destroy(gameObject);
			limit -= 0.1f;
		}
	}
	
	void OnMouseDown()
	{
		Destroy(gameObject);
		limit -= 0.1f;
	}
}
